<?php

class estate_dao extends dao
{
    protected $table_name = 'estate';
    protected $db_config_key = 'default';

    public function find_by_name($name)
    {/*{{{*/

        static $container = [];

        if (isset($container[$name])) {

            return $container[$name];
        }

        if ($name) {

            return $container[$name] = $this->find_by_column([
                'name' => $name,
            ]);
        }

        return $container[$name] = null_entity::create('estate');
    }/*}}}*/
}
